﻿// User.cpp: 实现文件
//

#include "pch.h"
#include "luntan.h"
#include "User.h"
#include "afxdialogex.h"
#include"luntanDlg.h"
#include"posts.h"
#include"reply.h"
#include"upuser.h"



// User 对话框

IMPLEMENT_DYNAMIC(User, CDialogEx)

User::User(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_USER, pParent)
{

}

User::~User()
{
}

void User::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(User, CDialogEx)
	ON_BN_CLICKED(IDC_BUTTON6, &User::OnBnClickedButton6)
	ON_BN_CLICKED(IDC_BUTTON5, &User::OnBnClickedButton5)
	ON_BN_CLICKED(IDC_BUTTON2, &User::OnBnClickedButton2)
END_MESSAGE_MAP()


// User 消息处理程序


void User::OnBnClickedButton6()
{
	// TODO: 在此添加控件通知处理程序代码
	User::OnOK();
}


void User::OnBnClickedButton5()
{
	// TODO: 在此添加控件通知处理程序代码
	User::OnOK();
	CluntanDlg a;
	a.DoModal();
}


void User::OnBnClickedButton2()
{
	// TODO: 在此添加控件通知处理程序代码
	User::OnOK();
	posts a;
	a.DoModal();
	
}




